import { defineAsyncComponent } from 'vue';
const mainChildren = [
    {
        path: "/manager/work",
        component: defineAsyncComponent(() => import('../pages/manager/work.vue')),
        meta: { title: "工作台", keepAlive:true },
    }, {
        path: "/manager/manageruser",
        component: defineAsyncComponent(() => import('../pages/manager/manageruser/list.vue')),
        meta: { title: "管理员管理", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/manageruser/edit.vue')),
                meta: { title: "管理员维护" }
            }
        ]
    }, {
        path: "/manager/management",
        component: defineAsyncComponent(() => import('../pages/manager/management/list.vue')),
        meta: { title: "管委会管理", keepAlive:true },
        children: [
            {
                path: "",
                // component: defineAsyncComponent(() => import('../pages/manager/management/edit.vue')),
                components:{
                    default: defineAsyncComponent(() => import('../pages/manager/management/edit.vue')),
                    staff: defineAsyncComponent(() => import('../pages/manager/management/staff.vue')),
                },
                meta: { title: "管委会维护" }
            }
        ]
    }
    
    ,{
        path: "/manager/garden",
        component: defineAsyncComponent(() => import('../pages/manager/garden/list.vue')),
        meta: { title: "园区管理", keepAlive:true },
        children: [
            {
                path: "",
                // component: defineAsyncComponent(() => import('../pages/manager/garden/edit.vue')),
                components:{
                    default: defineAsyncComponent(() => import('../pages/manager/garden/edit.vue')),
                    staff: defineAsyncComponent(() => import('../pages/manager/garden/staff.vue')),
                },
                meta: { title: "园区维护" }
            }
        ]
    },{
        path: "/manager/company",
        component: defineAsyncComponent(() => import('../pages/manager/company/list.vue')),
        meta: { title: "企业管理", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/company/edit.vue')),
                meta: { title: "企业维护" }
            }
        ]
    },{
        path: "/manager/persion",
        component: defineAsyncComponent(() => import('../pages/manager/persion/list.vue')),
        meta: { title: "人才库列表", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/persion/edit.vue')),
                meta: { title: "人才维护" }
            }
        ]
    },{
        path: "/manager/evaluation_subject",
        component: () => import('../pages/manager/evaluation_subject/index.vue'),
        meta: { title: "人才测评题库", keepAlive:true },
    },
    // {
    //     path: "/manager/evaluation_subject",
    //     component: defineAsyncComponent(() => import('../pages/manager/evaluation_subject/list.vue')),
    //     meta: { title: "人才测评题库", keepAlive:true },
    //     children: [
    //         {
    //             path: "",
    //             component: defineAsyncComponent(() => import('../pages/manager/evaluation_subject/edit.vue')),
    //             meta: { title: "人才测评题库维护" }
    //         }
    //     ]
    // },
    {
        path: "/manager/evaluation_paper",
        component: defineAsyncComponent(() => import('../pages/manager/evaluation_paper/list.vue')),
        meta: { title: "人才测评试卷", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/evaluation_paper/edit.vue')),
                meta: { title: "人才测评试卷维护" }
            }
        ]
    },{
        path: "/manager/evaluation_statistics",
        component: defineAsyncComponent(() => import('../pages/manager/evaluation_statistics/list.vue')),
        meta: { title: "人才测评统计", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/evaluation_statistics/edit.vue')),
                meta: { title: "试卷统计" }
            }
        ]
    },{
        path: "/manager/docking",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/docking.vue')),
        meta: { title: "查看企业信息审核", keepAlive:true },
    },
    // {
    //     path: "/manager/mechanism",
    //     component: defineAsyncComponent(() => import('../pages/manager/mechanism/list.vue')),
    //     meta: { title: "第三方机构管理", keepAlive:true },
    //     children: [
    //         {
    //             path: "",
    //             // component: defineAsyncComponent(() => import('../pages/manager/mechanism/edit.vue')),
    //             components:{
    //                 default: defineAsyncComponent(() => import('../pages/manager/mechanism/edit.vue')),
    //                 staff: defineAsyncComponent(() => import('../pages/manager/mechanism/staff.vue')),
    //             },
    //             meta: { title: "第三方机构维护" }
    //         }
    //     ]
    // },
    {
        path: "/manager/mechanism",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/index.vue')),
        meta: { title: "第三方机构", keepAlive:true },
    },{
        path: "/manager/financialpolicytype",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/financialpolicytype/list.vue')),
        meta: { title: "金融政策分类列表", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/mechanism/financialpolicytype/edit.vue')),
                meta: { title: "金融政策分类维护" }
            }
        ]
    },{
        path: "/manager/financialpolicy",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/financialpolicy.vue')),
        meta: { title: "金融政策审核列表", keepAlive:true },
    },{
        path: "/manager/banking",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/banking.vue')),
        meta: { title: "金融产品审核列表", keepAlive:true },
    },{
        path: "/manager/insurance",
        component: defineAsyncComponent(() => import('../pages/manager/mechanism/insurance.vue')),
        meta: { title: "保险产品审核列表", keepAlive:true },
    }
    
    
    ,{
        path: "/manager/monitoring_powerstation",
        component: defineAsyncComponent(() => import('../pages/manager/monitoring/powerstation.vue')),
        meta: { title: "新能源-电站监测", keepAlive:true },
    },{
        path: "/manager/monitoring_device",
        component: defineAsyncComponent(() => import('../pages/manager/monitoring/device.vue')),
        meta: { title: "新能源-设备监测", keepAlive:true },
    },{
        path: "/manager/monitoring_video",
        component: defineAsyncComponent(() => import('../pages/manager/monitoring/video.vue')),
        meta: { title: "新能源-视频监测", keepAlive:true },
    },{
        path: "/manager/monitoring_environment",
        component: defineAsyncComponent(() => import('../pages/manager/monitoring/environment.vue')),
        meta: { title: "新能源-环境监测", keepAlive:true },
    }
    
    ,{
        path: "/manager/mp_persionList",
        component: defineAsyncComponent(() => import('../pages/manager/mp/persionList.vue')),
        meta: { title: "微信小程序-个人用户列表", keepAlive:true },
    },{
        path: "/manager/mp_companyList",
        component: defineAsyncComponent(() => import('../pages/manager/mp/companyList/list.vue')),
        meta: { title: "微信小程序-企业列表", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/mp/companyList/company.vue')),
                meta: { title: "微信小程序-企业列表-员工列表" }
            }
        ]
    },{
        path: "/manager/mp_gardenList",
        component: defineAsyncComponent(() => import('../pages/manager/mp/gardenList/list.vue')),
        meta: { title: "微信小程序-园区列表", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/mp/gardenList/staff.vue')),
                meta: { title: "微信小程序-园区列表-员工列表" }
            }
        ]
    },{
        path: "/manager/banner",
        component: defineAsyncComponent(() => import('../pages/manager/mp/banner/list.vue')),
        meta: { title: "微信小程序-banner管理", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/mp/banner/edit.vue')),
                meta: { title: "微信小程序-banner管理-banner编辑" }
            }
        ]
    },{
        path: "/manager/newstype",
        component: defineAsyncComponent(() => import('../pages/manager/newstype/list.vue')),
        meta: { title: "平台信息类型管理", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/newstype/edit.vue')),
                meta: { title: "平台信息类型维护" }
            }
        ]
    },{
        path: "/manager/news",
        component: defineAsyncComponent(() => import('../pages/manager/news/list.vue')),
        meta: { title: "平台信息管理", keepAlive:true },
        children: [
            {
                path: "",
                component: defineAsyncComponent(() => import('../pages/manager/news/edit.vue')),
                meta: { title: "平台信息维护" }
            }
        ]
    },{
        path: "/manager/examine",
        component: defineAsyncComponent(() => import('../pages/manager/news/examine.vue')),
        meta: { title: "平台信息审核", keepAlive:true },
    },{
        path: "/manager/jobfair",
        component: defineAsyncComponent(() => import('../pages/manager/jobfair/list.vue')),
        meta: { title: "招聘会管理", keepAlive:true },
    },{
        path: "/manager/idea",
        component: defineAsyncComponent(() => import('../pages/manager/idea/list.vue')),
        meta: { title: "意见反馈", keepAlive:true },
    }
]

export default mainChildren